package nl.ceasaro.poker;

import junit.framework.TestCase;
import nl.ceasaro.playingcards.Card;

import java.text.MessageFormat;
import java.util.List;

/**
 * Created by Zerg.
 * User: cees
 * Date: Jul 31, 2007
 * Time: 11:12:54 PM
 *
 * @todo Document this class
 */
public abstract class PokerTestCase extends TestCase
{
   public static void validateContainsCard(Card expectedCard1, List hand)
   {
      String assertMessage = "poker hand must contain {0}";
      assertTrue(MessageFormat.format(assertMessage, expectedCard1), hand.contains(expectedCard1));
   }
}
